﻿using Autodesk.AutoCAD.DatabaseServices;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


namespace XS.Tunnel.Cad.SteelBracing.Component.SteelShotcrete.UniversalBeamComponent
{
    public class SplitArc
    {

        public SplitArc()
        {
            
        }

        public SplitArc(Curve rightSideAll, Curve arc180, Curve leftSideAll,List<Curve> arc180Split)
        {
            RightSideAll = rightSideAll;
            ArcSplit = arc180;
            LeftSideAll = leftSideAll;
            ArcSplits = arc180Split;
        }


        /// <summary>
        /// 右边墙  （仰拱右的弧）
        /// </summary>
        public Curve RightSideAll { get; set; }
        /// <summary>
        /// 要分割的弧  未分割的180度弧
        /// </summary>
        public Curve ArcSplit { get; set; }
        /// <summary>
        /// 左边强 （仰拱做的弧）
        /// </summary>
        public Curve LeftSideAll { get; set; }
        /// <summary>
        /// 分割后的的弧 180
        /// </summary>
        public List<Curve> ArcSplits { get; set; }


        /// <summary>
        /// 总圆弧
        /// </summary>
        public List<Curve> TotalArc  {
            get {
                var list = new List<Curve>();
                if(RightSideAll!=null)
                {
                    list.Add(RightSideAll);
                }
                list.AddRange(ArcSplits);
                if (LeftSideAll!=null)
                {
                    list.Add(LeftSideAll);
                }
                return list;
            }
        }




    }
}
